package lang;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MxRuntime {
    private static Logger log = LoggerFactory.getLogger(MxRuntime.class);

    public static void main(String[] args) {

        Runtime runtime = Runtime.getRuntime();

        runtime.addShutdownHook(new Thread(() -> System.out.println("exit")));

        log.info("max memory: {} MB", runtime.maxMemory() / (1000 * 1024));

        //runtime.load();
    }
}
